fn main() {
    let a = "2012-09-20T11:50:22+03:00".to_string();
    let b = "2012-0".to_string();
    let aa = &a[..10];
    println!("{:?}", aa);
    println!("{:?}", b.get(..10).unwrap_or(&*b));
    println!("{}", &b[..10]);
    println!("{}", &"sdlfkj"[..10]);
}
